package cobersky.skinUI.skins.scrollerbar
{
	import cobersky.skinUI.components.BarBase;
	import cobersky.skinUI.components.Button;
	import cobersky.skinUI.components.HBar;
	import cobersky.skinUI.skins.GlobalSkinManager;
	import cobersky.skinUI.skins.buttons.DefaultLeftArrowButtonSkin;
	import cobersky.skinUI.skins.buttons.DefaultRightArrowButtonSkin;
	import cobersky.skinUI.skins.core.IScrollerBarSkin;

	public class DefaultHScrollerBarSkin implements IScrollerBarSkin
	{
		public function DefaultHScrollerBarSkin()
		{
		}
		public function get bar():BarBase
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:HBar=new HBar;
				b.create();
				return b;
			}
		}
		
		public function get plusButton():Button
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:Button=new Button;
				b.skinClass=DefaultRightArrowButtonSkin;
				b.create();
				b.width=b.height=20;
				return b;
			}
		}
		
		public function get subButton():Button
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:Button=new Button;
				b.skinClass=DefaultLeftArrowButtonSkin;
				b.create();
				b.width=b.height=20;
				return b;
			}
		}
	}
}